#ifndef NB_H
#define NB_H

#include <stdint.h>

typedef void (*NB_Recv)(char* msg);

int NB_Init(int wait);
int NB_RunCmd(char* cmd, uint32_t wait, char* result, int size);
int NB_Connect(char* ipaddr, uint16_t port, NB_Recv func);
int NB_SendMsg(int cid, char* msg);
void NB_Loop(uint32_t wait);
int NB_IsConnected(int cid);
void NB_Disconnect(int cid);

#endif
